package com.lhq.business.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.lhq.common.annotation.Excel;
import com.lhq.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 章节对象 lhq_chapter
 *
 * @author lhq
 * @date 2024-05-11
 */
@TableName("lhq_chapter")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Chapter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /** 图书id */
    private Long bookId;
    /** 章节名称 */
    @Excel(name = "章节名称")
    @TableField("name")
    private String name;
    /** 删除标志（0代表存在 */
    @TableLogic(value = "0", delval = "1")
    private String delFlag;
    @TableField(exist = false)
    private String content;

}
